package ru.spies.profileClasses;

public class RoleInfo {
	
	private static final String ROLE_GUEST="guest";
	private static final String ROLE_ADMIN="admin";
	private static final String ROLE_AGENT="agent";
	private static final String ROLE_RESIDENT="resident";

	public static String getTrueRole(String roleName){
		if (roleName.equals(ROLE_GUEST)) return "Гость";
		if (roleName.equals(ROLE_AGENT)) return "Агент";
		if (roleName.equals(ROLE_RESIDENT)) return "Глава отдела";
		if (roleName.equals(ROLE_ADMIN)) return "Администратор";
		return null;
	}
	
	public static boolean isRoleGuest(String roleName){
		if (roleName.equals(ROLE_GUEST)) return true;
		return false;
	}
	
	public static boolean isRoleAdmin(String roleName){
		if (roleName.equals(ROLE_ADMIN)) return true;
		return false;
	}

}
